www.gusucode.com > VC++ 自制SQL数据库,含有服务端+客户端-源码程序 > VC++ 自制SQL数据库,含有服务端+客户端-源码程序/code/Server/ListeningSocket.cpp
//Download by http://www.NewXing.com // ListeningSocket.cpp : implementation file // #include "stdafx.h" #include "miniSQL.h" #include "ServerDoc.h" #include "ListeningSocket.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CListeningSocket CListeningSocket::CListeningSocket( CServerDoc* pDoc ) { m_pDoc = pDoc; } CListeningSocket::~CListeningSocket() { } // Do not edit the following lines, which are needed by ClassWizard. #if 0 BEGIN_MESSAGE_MAP(CListeningSocket, CSocket) //{{AFX_MSG_MAP(CListeningSocket) //}}AFX_MSG_MAP END_MESSAGE_MAP() #endif // 0 ///////////////////////////////////////////////////////////////////////////// // CListeningSocket member functions void CListeningSocket::OnAccept(int nErrorCode) { CSocket::OnAccept(nErrorCode); m_pDoc->ProcessPendingAccept(); } #ifdef _DEBUG void CListeningSocket::AssertValid() const { CSocket::AssertValid(); } void CListeningSocket::Dump(CDumpContext& dc) const { CSocket::Dump(dc); } #endif //_DEBUG IMPLEMENT_DYNAMIC(CListeningSocket, CSocket)